package org.jeecg.modules.exp.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.exp.entity.ExpAccount;
import org.jeecg.modules.exp.entity.ExpUsageApplying;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.exp.entity.ExpUsageMiddle;

/**
 * @Description: 专家管理（专家使用申请表）
 * @Author: jeecg-boot
 * @Date:   2022-11-28
 * @Version: V1.0
 */
public interface ExpUsageApplyingMapper extends BaseMapper<ExpUsageApplying> {
    @Select("select id, exp_name from exp_account")
    List<ExpAccount> queryAllExpert();

    @Select("select * from exp_usage_middle where usage_id=#{usageID}")
    List<ExpUsageMiddle> queryExpertByUsageID(@Param("usageID") String usageID);

    @Select("select * from exp_usage_middle where expert_id=#{expertID}")
    List<ExpUsageMiddle> queryExpertByExpertID(@Param("expertID") String expertID);
}
